Light trapping in thin-film solar cells with randomly rough and hybrid textures