Exploiting Proper Orthogonal Decomposition for the solution of forward and inverse ECG and EEG related biomedical problems