When were the earliest versions of quantum mechanics formulated?