Fundamentals of analog circuits