Photothermal actuation in nanomechanical waveguide devices