Simultaneous control of the Dzyaloshinskii-Moriya interaction and magnetic anisotropy in nanomagnetic trilayers.