Improved tangent estimate in the nudged elastic band method for finding minimum energy paths and saddle points