A Four-Dimensional Image Reconstruction Framework for PET under Arbitrary Geometries