Simple criterion for the occurrence of Bose-Einstein condensation and the Meissner-Ochsenfeld effect