Synthesis of the isotopes of elements 118 and 116 in the {sup 249}Cf and {sup 245}Cm+{sup 48}Ca fusion reactions