A Characterization of Bispecial Sturmian Words