An optogenetic method for the controlled release of single molecules