Bioreplication for optical applications