Multifunctional separators for improving battery safety