The method of fundamental solutions for Helmholtz-type problems