Generalized Inverse Beam-forming Algorithm Resolving Coherent/Incoherent, Distributed and Multipole Sources