In vitro and intracellular sensing by using the photoluminescence of quantum dots