A shape model for molecular ordering in nematics