What are the factors responsible for tides? Describe the conditions that lead to neap and spring tides.