Renormalization-group calculation of the critical properties of a free magnetic surface