Bloch and localized electrons in semiconductor superlattices