Elastic interaction of point defects in cubic and hexagonal crystals