Liquid crystal optical phase plate with a variable in-plane gradient