Modified Local Whittle Estimation of the Memory Parameter in the Nonstationary Case