Towards controlling the coercivity in molecular thin films for spintronic applications