how are mosses similar to ferns