DiskFit: a code to fit simple non-axisymmetric galaxy models either to photometric images or to kinematic maps