Laser beam effects on Cu and Ti in vacuum and in the air