Strain‐induced electron and hole lateral confinement in semiconductor heterostructures with curved heterointerfaces