Use of compensators to break supersymmetry in an N = 1 supergravity theory