Magnetic Dynamics of Iron-Oxide Nanoparticles in Frozen Ferrofluids and Ferronematics