Chemical amplification with encapsulated reagents