Amortised Resource Analysis with Separation Logic (Logical Methods in Computer Science, 2011)