How to draw a smooth gradient on OSX and iOS using CGShading