Scottish firm secures funding for new research vessel