A Fast All-sky Radiation Model for Solar applications (FARMS): Algorithm and performance evaluation