Action-based distribution functions for spheroidal galaxy components