Investigations on the effect of excitonic confinement on nanomagnetic materials and studies on the optical properties of ferrofluids