Variational Analysis of Nematic Shells