Inference of cosmological and black holes population parameters using gravitational waves data