The effect of a strong external radiation field on protostellar envelopes in Orion