A unified approach to the minimal unitary realizations of noncompact groups and supergroups