Elastic interactions in nematic elastomers and gels