Towards a miniature atomic scalar magnetometer using a liquid crystal polarization rotator