Appell-Lerch sums