Analysis and application of polling models