A generalized internal source density method for the forward and backward projection of harmonic pressure fields from complex bodies