Structural, electrical, electronic and optical properties of melanin films