Pressure tuning of strains and piezoelectric fields in cubic superlattices and heterostructures: Linear effects