Dynamics of bright rims in diffuse nebulae