Foundations of quantum mechanics