Explain the difference between boundary value analysis and equivalence partitioning, and provide an example of how you have applied both.