Hearts go second in ECL group after win over RFS