Tunable Goos–Hänchen and Imbert–Fedorov shifts