Using technology to treat depression and ‘rewire’ the brain