effective mass calculation includes the ending k-point. Not too pythonic though.