Effects of formulation and process variables on the release of a weakly basic drug from single unit extended release formulations.