Bistable pulsating fronts for reaction-diffusion equations in a periodic habitat