Electronic structure and optical transitions in GaAs-Ga1-xAlxAs(001) superlattices