Prediction of sound fields in cavities using boundary element methods