A molecular level simulation of a twisted nematic cell