A time projection chamber for the three-dimensional reconstruction of two-proton radioactivity events