Four charged with impersonating cops to commit robberies