Modeling a variable-focus liquid-filled optical lens