Interpolation-based immersed finite element and isogeometric analysis