Electronic and optical properties in graphane