Effects of virtual environments on pain