Control of electron spin–orbit anisotropy in pyramidal InAs quantum dots