Adaptive nudged elastic band approach for transition state calculations