A private hospital in Spain has trialled new virtual reality software to relax a person undergoing surgery.