Energy loss mechanism for suspended micro- and nanoresonators due to the Casimir force