Recovery of the wave profile for irrotational periodic water waves from pressure measurements