An approach to link invariants via rational Cherednik algebras