History and philosophy of physics as tools for preservice teacher education