Vortex pinning properties at dc and microwave frequencies of YBa2Cu3O7-x films with nanorods and nanoparticles