Virtual Prototyping and Parametric Design of 3D-Printed Tablets Based on the Solution of Inverse Problem