Regulated functions and the Perron-Stieltjes integral