Characterization of separability for LF-spaces