Optimization and characterization of PET scanners for Medical Imaging