Improved flexible thin-film solar cells with nanoimprinted light management textures