Electronic and optical properties of InAs/GaAs nanowire superlattices