Intensification of optical electric fields caused by the interaction with a metal tip in photofield emission and laser-assisted scanning tunneling microscopy