How do you use Planck's constant to determine frequency of a photon (given t frequency) or the energy (given the frequency)?