Determining finite difference weights for the acoustic wave equation by a new dispersion‐relationship‐preserving method