Sediment residence time distributions: Theory and application from bed elevation measurements