Translation and folding of single proteins in real time