Nematic materials in curved spaces