A method for computing acoustic fields based on the principle of wave superposition