The security firm G4S appears to have been making more profit than its contract allows from the immigration removal centres (IRCs) it runs for the government, according to an internal document seen by the Guardian.