Experimental studies of instabilities and confinement of energetic particles on JET and MAST