Impacts of localized charge accumulation on photocurrent dynamics in metal−MoS2 contacts