Boiling in nanopores through localized Joule heating: Transition between nucleate and film boiling