Moser-trudinger inequalities without boundary conditions and isoperimetric problems