Square-integrability modulo a subgroup