Three-dimensional nonlinear dynamics of prestressed active filaments: flapping, swirling, and flipping