First-principles identification of topological crystalline insulators with C2 rotation anomaly