Nonlocal Dynamic Problems with Singular Nonlinearities and Applications to MEMS