Edwin Powell Hubble, astronom