Model for molecular director configuration in a liquid crystal cell with multiple interfaces