Tunable electric and magnetic resonances in multilayered metal/dielectric nanoplates at optical frequencies