Optical properties of boron nitride nanoribbons with reconstruted edges