Error estimation and adaptivity for the finite element method in acoustics