Antidynamical Casimir effect as a resource for work extraction