Unified approach to the analogues of single-photon and multiphoton coherent states for generalized bosonic oscillators