Generation of molecular clusters of controlled size