Gel layers for inducing adjustable pretilt angles in liquid crystal systems