Modeling of strongly confined liquid-crystalline systems : thesis