Pointwise decay for the wave equation on nonstationary spacetimes