Force generated by a swelling elastomer subject to constraint