Similar Items: Internalising modified realisability in constructive type theory