Analysis of a variational model for nematic shells