General method for the quantification of drug loading and release kinetics of nanocarriers