Functional separators for the batteries of the future