Multiwavelength Brillouin-Raman fiber laser utilizing linear and ring cavity structures: A comparative study