Tracking subsurface ion radiation damage with metal–oxide–semiconductor device encapsulation