Tutorial on beamline simulations at the Bay Area Light Sources Joint Users' Meeting