Determination of critical micelle concentration of macroemulsions and miniemulsions