Sharp Moser-Trudinger inequalities for the Laplacian without boundary conditions