Optimization of isolation and cultivation of bacterial endophytes